package com.example.javajetpacktest.ui;


import androidx.lifecycle.ViewModelProvider;


import com.example.javajetpacktest.R;
import com.example.javajetpacktest.base.BaseActivity;
import com.example.javajetpacktest.databinding.ActivityLoginBinding;

import com.example.javajetpacktest.viewmodel.LoginViewModel;

public class LoginActivity extends BaseActivity<ActivityLoginBinding> {


    private LoginViewModel loginViewModel;



    @Override
    public int setLayout() {
        return R.layout.activity_login;
    }

    @Override
    public void setBingData(ActivityLoginBinding bingData) {
        bingData.setViewModel(loginViewModel);
    }

    @Override
    public void initViewModel() {
        loginViewModel = new ViewModelProvider(this, new ViewModelProvider.AndroidViewModelFactory(getApplication())).get(LoginViewModel.class);
    }

    @Override
    protected void initData() {

    }
}